/* rcshwbc4.p - SHIPPER WORKBENCH SUBPROGRAM - DELETE QAD_WKFL                */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                        */
/* All rights reserved worldwide.  This is an unpublished work.               */
/* $Revision: 1.2.1.2 $                                                       */
/*V8:ConvertMode=NoConvert                                                    */
/* REVISION: 8.6      LAST MODIFIED: 09/20/96    BY: kxn *K003*               */
/* REVISION: 8.6      LAST MODIFIED: 05/20/98    BY: *K1Q4* Alfred Tan        */
/* REVISION: 9.1      LAST MODIFIED: 08/12/00    BY: *N0KP* Mark Brown        */
/* $Revision: 1.2.1.2 $  BY: Jean Miller         DATE: 12/10/01  ECO: *P03H*  */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/

{mfdeclre.i}

/* INPUT VARIABLES */
define input parameter sod_recno as recid no-undo.

find sod_det where recid(sod_det) = sod_recno no-lock no-error.

for each qad_wkfl where
         qad_key1 = mfguser + global_db + "stage_component"
     and qad_key2 begins sod_nbr + "," + string(sod_line) + ","
     and qad_key3 = sod_nbr
     and qad_key4 = string(sod_line)
exclusive-lock:
   delete qad_wkfl.
end.
